<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

</head>
<body>
    <div id="app">
        <p>{{msg}}</p>
        <p>{{msg2}}</p>
    </div>
    <script>
        var app = new Vue({
            el:"#app",
            data:{
                msg:"陈冠希"
            },
            computed:{
                msg2:function(){
                    return this.msg.split('').reverse().join('');
                }
            },
            methods:{
                
            }
        })
    </script>
</body>
</html>